import request from "./http";

//发送验证码
export function sendcode(params) {
    return request({
        url: "/captcha/sent",
        methods: "get",
        params
    })
}
// 登录
export function loginenter() {
    return request({
        url: "/login/cellphone",
        methods: "get",
        params: {
            phone: 13531066983,
            password: 'cqb123456'
        }
    })
}
//验证验证码
export function verifycode(params) {
    return request({
        url: "/captcha/verify",
        methods: "get",
        params
    })
}
//检查是否注册
export function checkphone(params) {
    return request({
        url: "/cellphone/existence/check",
        methods: "get",
        params
    })
}
//注册账号
export function register(params) {
    return request({
        url: "/register/cellphone",
        methods: "get",
        params
    })
}
//初始化昵称
export function initnickname() {
    return request({
        url: "/activate/init/profile",
        methods: "get",
        params: {
            nickname: 'testUser2019'
        }
    })
}
//登录状态
export function loginstatus() {
    return request({
        url: "/login/status",
        methods: "get",
    })
}
//用户信息
export function userAccount() {
    return request({
        url: "/user/account",
        methods: "get",
    })
}
//退出登录
export function userout() {
    return request({
        url: "/logout",
        methods: "get",
    })
}